package com.hotleproject.service.impl;

import com.hotleproject.mapper.InsertOrderMapper;
import com.hotleproject.pojo.Order;
import com.hotleproject.service.InsertOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class InsertOrderServiceImpl implements InsertOrderService {
    @Autowired
    private InsertOrderMapper insertOrderMapper;
    @Override
    public void addOrder(Order order) {
        this.insertOrderMapper.insertOrder(order);
    }
}
